home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / sun4.md / bfd / Makefile < prev    next >
Encoding:
Makefile  |  1992-06-30  |  12.8 KB  |  402 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. host_alias = sun4
  3. host_cpu = sparc
  4. host_vendor = sun
  5. host_os = sunos411
  6. target_alias = sun4
  7. target_cpu = sparc
  8. target_vendor = sun
  9. target_os = sunos411
  10. target_makefile_frag = ./config/sparc-aout.mt
  11. host_makefile_frag = 
  12. site_makefile_frag = 
  13. links = sysdep.h
  14. VPATH = .
  15. ALL=all.internal
  16. #    Makefile template for Configure for the BFD library.
  17. #    Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  18. #    Written by Cygnus Support.
  19. # This file is part of BFD, the Binary File Descriptor library.
  20. # This program is free software; you can redistribute it and/or modify
  21. # it under the terms of the GNU General Public License as published by
  22. # the Free Software Foundation; either version 2 of the License, or
  23. # (at your option) any later version.
  24. # This program is distributed in the hope that it will be useful,
  25. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. # GNU General Public License for more details.
  28. # You should have received a copy of the GNU General Public License
  29. # along with this program; if not, write to the Free Software
  30. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  31.  
  32. # $Id: Makefile.in,v 1.79 1992/04/03 01:47:33 gnu Exp $
  33.  
  34. srcdir = .
  35.  
  36. prefix = /usr/local
  37.  
  38. exec_prefix = $(prefix)
  39. bindir = $(exec_prefix)/bin
  40. libdir = $(exec_prefix)/lib
  41.  
  42. datadir = $(prefix)/lib
  43. mandir = $(prefix)/man
  44. man1dir = $(mandir)/man1
  45. man2dir = $(mandir)/man2
  46. man3dir = $(mandir)/man3
  47. man4dir = $(mandir)/man4
  48. man5dir = $(mandir)/man5
  49. man6dir = $(mandir)/man6
  50. man7dir = $(mandir)/man7
  51. man8dir = $(mandir)/man8
  52. man9dir = $(mandir)/man9
  53. infodir = $(prefix)/info
  54. includedir = $(prefix)/include
  55. oldincludedir =
  56. docdir = $(srcdir)/doc
  57.  
  58. SHELL = /bin/sh
  59.  
  60. INSTALL = install -c
  61. INSTALL_PROGRAM = $(INSTALL)
  62. INSTALL_DATA = $(INSTALL)
  63.  
  64. AR = ar
  65. AR_FLAGS = qc
  66. BISON = bison
  67. MAKEINFO = makeinfo
  68. RANLIB = ranlib
  69.  
  70. INCDIR = $(srcdir)/../include
  71. CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
  72. DEP = mkdep
  73. MINUS_G=-g -O
  74.  
  75. SUBDIRS = doc
  76.  
  77.  
  78. # Change this (to MINIMIZE=1) to save space in executables.
  79. # Currently, all this does is control the target_vector in targets.c.
  80. MINIMIZE=0
  81.  
  82. TARGETLIB = libbfd.a
  83. CFLAGS = $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
  84.  
  85.  
  86. BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
  87.     archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o
  88.  
  89. BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
  90.     cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o
  91.  
  92. BFD_BACKENDS = oasys.o ieee.o srec.o elf.o stab-syms.o\
  93.     aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
  94.     coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
  95.     coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o 
  96.  
  97. OPTIONAL_BACKENDS = trad-core.o
  98.  
  99. #### host and target dependent Makefile fragments come in here.
  100. # Target:  SPARC using a.out.
  101. TDEFAULTS = -DDEFAULT_VECTOR=sunos_big_vec
  102. ###
  103.  
  104. BFD_H=$(INCDIR)/bfd.h
  105.  
  106. # C source files that correspond to .o's.
  107. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
  108.      coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
  109.      oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c coff-msym.c \
  110.      format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c seclet.c \
  111.      coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
  112.     cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
  113.      cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c
  114.  
  115. STAGESTUFF = $(TARGETLIB) $(OFILES)
  116.  
  117. all: $(TARGETLIB) 
  118.     $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)"
  119.  
  120. check:
  121.  
  122. info: force
  123.     $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
  124.  
  125. clean-info:
  126.     $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
  127.     
  128. install-info: force
  129.     $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
  130.  
  131. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  132. OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
  133.  
  134. $(TARGETLIB): $(OFILES)
  135.      rm -f $(TARGETLIB)
  136.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  137.      $(RANLIB) $(TARGETLIB)
  138.  
  139. # When compiling targets.c, supply the default target info from configure.
  140. targets.o: targets.c
  141.     $(CC) $(CFLAGS) -c -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
  142.  
  143. subdir_do: force
  144.     for i in $(DODIRS); do \
  145.         if [ -d ./$$i ] ; then \
  146.             if (cd ./$$i; \
  147.                 $(MAKE) \
  148.                     "against=$(against)" \
  149.                     "AR=$(AR)" \
  150.                     "AR_FLAGS=$(AR_FLAGS)" \
  151.                     "CC=$(CC)" \
  152.                     "RANLIB=$(RANLIB)" \
  153.                     "MAKEINFO=$(MAKEINFO)" \
  154.                     "BISON=$(BISON)" $(DO)) ; then true ; \
  155.             else exit 1 ; fi ; \
  156.         else true ; fi ; \
  157.     done
  158.  
  159. stage1: force
  160.     - mkdir stage1
  161.     - mv -f $(STAGESTUFF) stage1
  162.     $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
  163.  
  164. stage2: force
  165.     - mkdir stage2
  166.     - mv -f $(STAGESTUFF) stage2
  167.     $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
  168.  
  169. stage3: force
  170.     - mkdir stage3
  171.     - mv -f $(STAGESTUFF) stage3
  172.     $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
  173.  
  174. against=stage2
  175.  
  176. comparison: force
  177.     for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  178.     $(MAKE) subdir_do DO=comparison "DODIRS=$(SUBDIRS)"
  179.  
  180. de-stage1: force
  181.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  182.     - rmdir stage1
  183.     $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
  184.  
  185. de-stage2: force
  186.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  187.     - rmdir stage2
  188.     $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
  189.  
  190. de-stage3: force
  191.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  192.     - rmdir stage3
  193.     $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
  194.  
  195. tags etags: TAGS
  196.  
  197. TAGS: force
  198.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  199.  
  200. clean:
  201.     rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
  202.     $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)"
  203.  
  204. clobber realclean: clean
  205.     rm -f libbfd.a TAGS
  206.     $(MAKE) subdir_do DO=clobber "DODIRS=$(SUBDIRS)"
  207.  
  208. # Mark everything as depending on config.status, since the timestamp on
  209. # sysdep.h might actually move backwards if we reconfig and relink it
  210. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  211. RECONFIG = config.status
  212. $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
  213. $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
  214. $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  215. $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  216.  
  217. # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
  218. cpu-i386.o:cpu-i386.c
  219.  
  220. saber:
  221.     #suppress 65 on bfd_map_over_sections 
  222.     #suppress 66 on bfd_map_over_sections 
  223.     #suppress 67 on bfd_map_over_sections 
  224.     #suppress 68 on bfd_map_over_sections 
  225.     #suppress 69 on bfd_map_over_sections 
  226.     #suppress 70 on bfd_map_over_sections 
  227.     #suppress 110 in bfd_map_over_sections 
  228.     #suppress 112 in bfd_map_over_sections 
  229.     #suppress 530 
  230.     #suppress 590 in swap_exec_header 
  231.     #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
  232.     #suppress 590 in bfd_dont_truncate_arname
  233.     #suppress 590 on ignore 
  234.     #suppress 590 on abfd 
  235.     #setopt load_flags $(CFLAGS)
  236.     #load $(CFILES)
  237.  
  238.  
  239. #-----------------------------------------------------------------------------
  240. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  241. #
  242. # 'VERSION' file must be present and contain a string of the form "x.y"
  243. #-----------------------------------------------------------------------------
  244.  
  245. ver960.c: FORCE
  246.     rm -f ver960.c
  247.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  248.  
  249.  
  250. # This target should be invoked before building a new release.
  251. # 'VERSION' file must be present and contain a string of the form "x.y"
  252. #
  253. roll:
  254.     @V=`cat VERSION`        ; \
  255.     MAJ=`sed 's/\..*//' VERSION`    ; \
  256.     MIN=`sed 's/.*\.//' VERSION`    ; \
  257.     V=$$MAJ.`expr $$MIN + 1`    ; \
  258.     rm -f VERSION            ; \
  259.     echo $$V >VERSION        ; \
  260.     echo Version $$V
  261.  
  262. # Dummy target to force execution of dependent targets.
  263. #
  264. force:
  265.  
  266. install:
  267.     $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
  268.     $(RANLIB) $(libdir)/libbfd.a
  269.     $(INSTALL_DATA) $(INCDIR)/bfd.h $(includedir)/bfd.h
  270.     [ -z "$(oldincludedir)" ] || $(INSTALL_DATA) $(INCDIR)/bfd.h $(oldincludedir)/bfd.h
  271.     $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)"
  272.  
  273. # Target to uncomment host-specific lines in this makefile.  Such lines must
  274. # have the following string beginning in column 1: #__<hostname>__#
  275. # Original Makefile is backed up as 'Makefile.old'.
  276. #
  277. # Invoke with:  make make HOST=xxx
  278. #
  279. make:
  280.     -@if test $(HOST)x = x ; then \
  281.         echo 'Specify "make make HOST=???"'; \
  282.         exit 1; \
  283.     fi ; \
  284.     grep -s "^#The next line was generated by 'make make'" Makefile; \
  285.     if test $$? = 0 ; then    \
  286.         echo "Makefile has already been processed with 'make make'";\
  287.         exit 1; \
  288.     fi ; \
  289.     mv -f Makefile Makefile.old; \
  290.     echo "#The next line was generated by 'make make'"     >Makefile ; \
  291.     echo "HOST=$(HOST)"                    >>Makefile ; \
  292.     echo                            >>Makefile ; \
  293.     sed "s/^#__$(HOST)__#//" < Makefile.old            >>Makefile
  294.  
  295. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  296.     $(SHELL) ./config.status
  297.  
  298. dep: $(CFILES)
  299.     mkdep $(CFLAGS) $?
  300.  
  301. host-aout.o: Makefile
  302.  
  303. # The following program can be used to generate a simple config file
  304. # which can be folded into an h-XXX file for a new host, with some editing.
  305. aout-params.h: gen-aout
  306.     ./gen-aout > aout-params.h
  307. gen-aout: $(srcdir)/gen-aout.c Makefile
  308.     $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  309.  
  310. headers:
  311.     (cd $(docdir); $(MAKE) protos)
  312.     # Rebuild prototypes in bfd.h
  313.     cp $(docdir)/bfd.h $(BFD_H)
  314.     cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
  315.     cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
  316.  
  317. bfd.info:
  318.     ( cd $(docdir); $(MAKE) bfd.info)
  319.  
  320. bfd.dvi:
  321.     (cd $(docdir); $(MAKE) bfd.dvi)
  322.  
  323. bfd.ps: 
  324.     (cd $(docdir); $(MAKE) bfd.ps)
  325.  
  326. # What appears below is generated by a hacked mkdep using gcc -MM.
  327.  
  328. # DO NOT DELETE THIS LINE -- mkdep uses it.
  329. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  330.  
  331. libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  332. opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  333. bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  334. archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  335.   $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h 
  336. targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  337. cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  338. archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
  339. aout64.o : aout64.c 
  340. aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
  341.   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \
  342.   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h 
  343. sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  344.   libaout.h libbfd.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  345.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h 
  346. demo64.o : demo64.c 
  347.  
  348. srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  349. oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  350.   $(INCDIR)/oasys.h liboasys.h 
  351. ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  352.   $(INCDIR)/ieee.h libieee.h 
  353. coff-h8300.o: coff-h8300.c  $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  354.   $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  355. coff-a29k.o: coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  356.   $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  357. coff-i386.o: coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  358.   $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  359. coff-i960.o: coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  360.   $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  361. coff-m68k.o: coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  362.   $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  363. coff-m88k.o: coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  364.   $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  365. coff-mips.o: coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  366.   $(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  367. coff-rs6000.o: coff-rs6000.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  368.   $(INCDIR)/coff/rs6000.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  369. format.o : format.c $(INCDIR)/bfd.h \
  370.   $(INCDIR)/obstack.h libbfd.h 
  371. section.o : section.c $(INCDIR)/bfd.h \
  372.   $(INCDIR)/obstack.h libbfd.h 
  373. core.o : core.c $(INCDIR)/bfd.h \
  374.   $(INCDIR)/obstack.h libbfd.h 
  375. syms.o : syms.c $(INCDIR)/bfd.h \
  376.   $(INCDIR)/obstack.h libbfd.h 
  377. syms.o : stab-syms.c
  378. reloc.o : reloc.c $(INCDIR)/bfd.h \
  379.   $(INCDIR)/obstack.h libbfd.h 
  380.  
  381. trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  382.   libbfd.h libaout.h 
  383.  
  384. coff-msym.o: coff-msym.c $(INCDIR)/bfd.h  $(INCDIR)/coff/ecoff-ext.h \
  385.   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h
  386.  
  387. newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  388.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  389.   $(INCDIR)/aout/ar.h libaout.h 
  390. i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  391.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  392.   $(INCDIR)/aout/ar.h libaout.h 
  393. bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  394.   $(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h 
  395.  
  396. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  397.  
  398.